﻿/*=================================================================================
	TASK 3:                                                   {Console InputOutput}
	A company has name, address, phone number, fax number, web site and manager. 
    The manager has first name, last name, age and a phone number. Write a program 
    that reads the information about a company and its manager and prints them 
    on the console. 
=================================================================================*/

using System;

class InfoAboutCompanyAndManager
{
    static void Main()
    {
        Console.Write("Enter comapny name:");
        string companyName = Console.ReadLine();

        Console.Write("Enter company address:");
        string companyAddress = Console.ReadLine();

        Console.Write("Enter comapny phone number:");
        uint companyPhone = uint.Parse(Console.ReadLine());

        Console.Write("Enter comapny fax number:");
        uint companyFax = uint.Parse(Console.ReadLine());

        Console.Write("Enter comapny website:");
        string companyWebsait = Console.ReadLine();

        Console.Write("Enter comapny manger name:");
        string companyManager = Console.ReadLine();

        Console.Write("".PadLeft(80,'='));
        Console.WriteLine("Comapny information".PadLeft(40));
        Console.Write("".PadLeft(80, '='));

        Console.WriteLine("Comapany name:{0}",companyName);
        Console.WriteLine("Comapny address:\"{0}\"",companyAddress);
        Console.WriteLine("Comany phone number:{0:0### ## ## ## }",companyPhone);
        Console.WriteLine("Coampany fax  number:{0:(0##) ###-####}",companyFax);
        Console.WriteLine("Company website:{0}",companyWebsait);
        Console.WriteLine("Comapany manager name:{0}", companyManager);

        Console.WriteLine("\n".PadLeft(80,'-'));

        Console.Write("Enter manager first name:");
        string managerFirstName = Console.ReadLine();

        Console.Write("Enter manger last name:");
        string managerLastName = Console.ReadLine();

        Console.Write("Enter manger age:");
        byte managerAge = byte.Parse(Console.ReadLine());

        Console.Write("Enter manger number:");
        uint managerPhone = uint.Parse(Console.ReadLine());

        Console.Write("".PadLeft(80, '='));
        Console.WriteLine("Manger Information".PadLeft(40));
        Console.Write("".PadLeft(80, '='));

        Console.WriteLine("manger first name:{0}",managerFirstName);
        Console.WriteLine("manger last name:{0}years old",managerLastName);
        Console.WriteLine("manger age:{0}",managerAge);
        Console.WriteLine("manager phone number:{0:0### ## ## ##}",managerPhone);

        Console.WriteLine("".PadLeft(80,'-'));
    }
}

